def shuchu(dit):
    lis={}
    a=0
    for key in dit:
        s=0
        for i in range(0,3):
            s+=dit[key][i]
        a="{:.2f}".format(s / 3)
        lis[key]=a
    return lis
def shuchu1(dit1):
    lis=[]
    for key in dit1:
        a=85
        if dit1[key][0] >= a and dit1[key][1] >= a and dit1[key][2] >= a:
            lis=lis+list(key)
    return lis
def shuchu2(dit2):
    lis={}
    lis1={}
    for key in dit2:
        s=0
        for i in range(0,3):
            s+=dit2[key][i]
        lis1[key] = s
    my_new = sorted(lis1.values())
    return my_new
dict={'01':[67,88,45],'02':[97,68,85],'03':[97,98,95],'04':[67,48,45],'05':[82,58,75],'06':[96,49,65]}
print("每位学生的平均成绩",shuchu(dict))
dict={'01':[67,88,45],'02':[97,68,85],'03':[97,98,95],'04':[67,48,45],'05':[82,58,75],'06':[96,49,65]}
print("每门成绩均大于85的学生学号",shuchu1(dict))
dict={'01':[67,88,45],'02':[97,68,85],'03':[97,98,95],'04':[67,48,45],'05':[82,58,75],'06':[96,49,65]}
print("按总分升序排列",shuchu2(dict))
